/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package questionario;

/**
 *
 * @author Guilherme
 */
public class RespObjetiva extends Questao {
    private int resp;
    private int usrResp;

    public RespObjetiva() {
        this.resp = -1;
    }
    
    public RespObjetiva(String titulo, String enunciado, int resp){
        this.questao = enunciado;
        this.titulo = titulo;
        this.resp = resp;
    }

    public int getResp() {
        return resp;
    }

    public void setResp(int resp) {
        this.resp = resp;
    }

    public int getUsrResp() {
        return usrResp;
    }

    public void setUsrResp(int usrResp) {
        this.usrResp = usrResp;
    }
    
    public Boolean confereResp(){
        if (this.resp == this.usrResp)
        {
            return true;
        }
        return false;
    }
}
